Ext.define("SHApp.Sys.Role.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/role?format=json",
    winWidth: 400,
    winHeight: 200,
    layout: { type: "vbox", align: "stretch" },
    items: [{
        xtype: "textfield",
        fieldLabel: "ID",
        name: "Id",
        hidden: true
    }, {
        fieldLabel: "名称<span style='color:red'>*</span>",
        allowBlank: false,
        blankText: "名称不能为空",
        xtype: "textfield",
        name: "Name",
        maxLength: 50
    }, {
        fieldLabel: "显示顺序<span style='color:red'>*</span>",
        xtype: "numberfield",
        name: "Index",
        maxLength: 8
    }, {
        xtype: "radiogroup",
        fieldLabel: "状态",
        columns: 2,
        disabled: true,
        items: [
                        { name: "Flag", boxLabel: "解锁", inputValue: 0 },
                        { name: "Flag", boxLabel: "锁定", inputValue: 1 }
                    ]
    }
	],
    initComponent: function () {
        Ext.apply(this);
        this.callParent(arguments);
    }

})